package com.serve.oa.mapper;

import com.serve.oa.entity.ComOrganization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.serve.oa.entity.comUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author __tyw
 * @since 2022-12-06
 */
public interface ComOrganizationMapper extends BaseMapper<ComOrganization> {

    List<comUser> getOrgeUser(Long id);
    List<Map> getManId(Long id);


    int batchDelete(Long id);
    int batchDeletes(Long id);
    int addDeletes(@Param("id") Long id , @Param("params") List<Long> params);


    int addMan(@Param("obj") Map<String, Long> obj);

    void delMan(Long id);

    List<Map> gerManUserByuserId(String fqr);
}
